package comgame.entities.EquipmentEnum;

import java.util.ArrayList;

public enum HelmetType implements EquipmentType {
    HELMET_1("普通头盔", 1,5,0,0.00),
    HELMET_2("铁头盔", 2,10,0,0.00),
    HELMET_3("金头盔", 3,15,-1,0.01),
    HELMET_4("钻石头盔", 4,20,-2,0.02),
    HELMET_GHOST("幽灵头盔", 7, 23, -1, 0.05),
    HELMET_SPACEKING("空间之主头盔", 17, 25, 2, 0.13);

    private final String displayName;
    private final int attack;
    private final int defense;
    private final int speed;
    private final double critRate;

    HelmetType(String displayName, int attack,int defense, int speed,double critRate) {
        this.displayName = displayName;
        this.attack = attack;
        this.defense = defense;
        this.speed = speed;
        this.critRate = critRate;
    }


    @Override
    public String getTypeCategory() {
        return "HELMET";
    }

    @Override
    public String getName() {
        return displayName;
    }

    @Override
    public ArrayList<Integer> getBaseValue() {
        return new ArrayList<Integer>(){{
            add(attack);
            add(defense);
            add(speed);
        }};
    }
    public int getAttack() {
        return attack;
    }
    public int getDefense() {
        return defense;
    }
    public int getSpeed() {
        return speed;
    }
    public double getCritRate() {
        return critRate;
    }

}